package com.zygh.lz.entity.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


@Data
@ApiModel(value="AppMenu对象", description="")
public class AppMenu implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "上级id")
    private Integer appMenuPid;

    @ApiModelProperty(value = "模块名称")
    private String menuName;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @TableField(exist = false)
    private List<AppMenu> children = new ArrayList<>();


}
